<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>{% block title %}{% endblock %}</title>
    <link rel="stylesheet" href="../static/layui/css/layui.css">
    {% block head %}
    {% endblock %}
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header layui-bg-black">
        <div class="layui-logo">
            <a href="/" style="color: #F0F0F0">在线学习网站</a>
        </div>
        <ul class="layui-nav layui-layout-right">
            {% block li %}
            {% endblock %}
        </ul>
    </div>

    {% block content %}
    {% endblock %}
</div>
</body>
<script src="../static/layui/layui.all.js" charset="UTF-8"></script>

<script>
    function GetQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if(r != null){
            //解决中文乱码
            return decodeURI(r[2]);
        }
        return null;
    }
</script>

{% block script %}
{% endblock %}

</html>